package svc

import (
	"rpc/wfw1/api/internal/config"
	"rpc/wfw1/rpc/returnageclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config    config.Config
	Returnage returnageclient.Returnage
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		Returnage: returnageclient.NewReturnage(zrpc.MustNewClient(c.Returnage)),
	}
}
